package com.wave.wavesystem.business.pojo.entity;

import com.mybatisflex.annotation.Table;
import wave.common.pojo.entity.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 夕下风波
 * @date 2025-02-02
 * @description 用户-部门关联表 实体
 */
@Data
@Table("wave_user_dept")
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class UserDeptEntity extends BaseEntity implements Serializable {

    public UserDeptEntity(Long userId, Long deptId) {
        this.userId = userId;
        this.deptId = deptId;
    }
    // 部门id
    private Long deptId;
    // 是否为默认部门
    private Boolean isDefault;
    // 备注
    private String remark;
    // 用户id
    private Long userId;

}
